package com.homegoods.orderinfodetail.item;

import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.aroutercomment.ARouterPath;
import com.homegoods.orderinfodetail.R;
import com.homegoods.orderinfodetail.model.OrderInFoShopBean;
import com.kedll.library.mvp.BaseItem;


public class ShopNameItem extends BaseItem<OrderInFoShopBean> {
    public ShopNameItem(OrderInFoShopBean data) {
        super(data);
        setOnClickListener(v -> {
            //查看店铺详情
            ARouter.getInstance()
                    .build(ARouterPath.PATH_SHOP_DETAIL)
                    .navigation();
        });
    }

    public String getShopName() {
        return getData().getTitle();
    }

    @Override
    public int getLayout() {
        return R.layout.info_item_shopname;
    }
}
